﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MpSoft.Library.BUSS.Categories;

namespace MpSoft.Web.AdminCP.Controls.Modules
{
    public partial class TitlePages : System.Web.UI.UserControl
    {
        #region var

        private string controlName = string.Empty;

        #endregion

        #region Method

        public string GetTitlePage()
        {
            var listNav = NavigateBUSS.Navigate_ByDic();
            if (listNav.ContainsKey(this.controlName))
                return listNav[this.controlName].Title;
            return "Bảng điều khiển";
        }

        #endregion

        #region Event

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        #endregion

        #region Properties

        public string ControlName
        {
            set { controlName = value; }
            get { return controlName; }
        }

        #endregion
    }
}